package org.knight.gearbox.concurrent.lock.distributed.db.support.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Param;
import org.knight.gearbox.concurrent.lock.distributed.db.support.po.LockPO;

public interface LockDAO {

    @Insert("insert into distributed_lock(name, resource, version,created_time,owner)" +
            " values (#{po.name}, #{po.resource}, #{po.version}, now(), #{po.owner})")
    int insertLock(@Param("po") LockPO po);


}
